package com.open.capacity.db.controller;

import com.open.capacity.common.model.DB;
import com.open.capacity.common.web.PageResult;
import com.open.capacity.db.service.DBTableService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@RestController
@RequestMapping("/dbTable")
public class DBTableController {

    @Autowired
    DBTableService dbTableService;

    @GetMapping("/getTableList")
    public PageResult getTableList(@RequestParam Map map){
        return dbTableService.getTableList(map);
    }
}
